/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-11-14
 * Time: 16:13
 */
public class VariableScope {
    public static void main(String args[]) {
        int i=10;
        int k;
        {
            k = 10;
            System.out.println("i=" + i);
            System.out.println("k=" + k);
        }
        System.out.println("i="+i);
        System.out.println("k="+k);
    }
}